var mongoose = require('mongoose');

//文章点赞表(fabulous)
var fabulousSchema = new mongoose.Schema({
    articleid: {type: mongoose.SchemaTypes.ObjectId, ref: 'article',required: true}, //文章id
    artictype:{type: String,required: true},//文章类型
    userid: {type: mongoose.SchemaTypes.ObjectId, ref: 'user_login',required: true}, //用户id
    like_time: {type: Date,default: new Date},//收藏时间
})

module.exports = mongoose.model('fabulous', fabulousSchema)